<?php include "header.php"; ?>
<table border=0 cellspacing=0 cellpadding=0 width="100%" height="100%">
<tr>
<td align=center valign=top>

<?php
$result = mysql_query ("SELECT * FROM phaos_characters WHERE username = '$PHP_PHAOS_USER'");
if ($row = mysql_fetch_array($result)) {
	$char_loc = $row["location"];
}
$result = mysql_query ("SELECT * FROM phaos_locations WHERE id = '$char_loc'");
if ($row = mysql_fetch_array($result)) {
		$location_name = $row["name"];
}
if($char_loc == "") {
	echo ("<script language=\"JavaScript\" type=\"text/javascript\">window.setTimeout('location.href=\"create_character.php\";',0);</script>\n");
	exit;
}
?>

<table border=0 cellspacing=5 cellpadding=0>
<tr>
<td align=center width="33%">
<img src="images/torch.gif">
</td>
<td align=center width="34%">
<img src="lang/<? echo $lang ?>_images/welcome.png">
</td>
<td align=center width="33%">
<img src="images/torch.gif">
</td>
</tr>
<tr>
<td align=center colspan=3>
<a href="http://caos-games.foroactivo.net" target="_blank"><b><?php echo $lang_home["need_help"]; ?></b></a>
<br>
<br>
<a href="who.php"><b><?php echo $lang_home["hos_online"]; ?></b></a>
<br>
<br>
<a href="credits.php"><b><?php echo $lang_home["creddy"]; ?></b></a>
</td>
</tr>
<tr><td colspan=3 align=center>
<hr>
<table cellspacing=0 cellpadding=3 border=1>
<tr>
<td align=center colspan=2>
<b><?php print $lang_home['maps']; ?></b>
</td>
</tr>
<tr>
<form method="post" action="map_to_image.php" target="_blank">
<td align=center>
<input type="hidden" name="begin_id" value="0">
<input type="hidden" name="end_id" value="10000">
<input type="submit" value="<? print $lang_home['map_of_1']; ?>" style="background:#000000;border:none;">
</td>
</form>
<form method="post" action="map_to_image.php" target="_blank">
<td align=center>
<input type="hidden" name="begin_id" value="10000">
<input type="hidden" name="end_id" value="20000">
<input type="submit" value="<? print $lang_home['map_of_2']; ?>" style="background:#000000;border:none;">
</td>
</form>
</tr>
<tr>
<form method="post" action="map_to_image.php" target="_blank">
<td align=center>
<input type="hidden" name="begin_id" value="20000">
<input type="hidden" name="end_id" value="30000">
<input type="submit" value="<? print $lang_home['map_of_3']; ?>" style="background:#000000;border:none;">
</td>
</form>
<form method="post" action="map_to_image.php" target="_blank">
<td align=center>
<input type="hidden" name="begin_id" value="30000">
<input type="hidden" name="end_id" value="40000">
<input type="submit" value="<? print $lang_home['map_of_4']; ?>" style="background:#000000;border:none;">
</td>
</form>
</tr>
<tr>
<form method="post" action="map_to_image.php" target="_blank">
<td align=center>
<input type="hidden" name="begin_id" value="40000">
<input type="hidden" name="end_id" value="50000">
<input type="submit" value="<? print $lang_home['map_of_5']; ?>" style="background:#000000;border:none;">
</td>
</form>
<form method="post" action="map_to_image.php" target="_blank">
<td align=center>
<input type="hidden" name="begin_id" value="50000">
<input type="hidden" name="end_id" value="60000">
<input type="submit" value="<? print $lang_home['map_of_6']; ?>" style="background:#000000;border:none;">
</td>
</form>
</tr>
<tr>
<form method="post" action="map_to_image.php" target="_blank">
<td align=center>
<input type="hidden" name="begin_id" value="60001">
<input type="hidden" name="end_id" value="61681">
<input type="submit" value="<? print $lang_home['map_of_7']; ?>" style="background:#000000;border:none;">
</form>
</td>
<form method="post" action="map_to_image.php" target="_blank">
<td align=center>
<input type="hidden" name="begin_id" value="70000">
<input type="hidden" name="end_id" value="80000">
<input type="submit" value="<? print $lang_home['map_of_8']; ?>" style="background:#000000;border:none;">
</td>
</form>
</tr>
<tr>
<form method="post" action="map_to_image.php" target="_blank">
<td align=center colspan=2>
<input type="hidden" name="begin_id" value="80000">
<input type="hidden" name="end_id" value="90000">
<input type="submit" value="<? print $lang_home['map_of_9']; ?>" style="background:#000000;border:none;">
</td>
</form>
</tr>
</table>

</td>
</tr>

<tr>
<td align=center colspan=3>
<hr>
<b><?php echo $lang_home["rela_sit"]; ?>:</b>
<p>
<a href="http://code.google.com/p/caos-proyect/" target="_blank">Mundo de Caos</a>
<p>
<a href="http://caos-games.foroactivo.com/" target="_blank">Caos Games</a>
</td>
</tr>
</table>

</td>
</tr>
</table>
<?php include "footer.php"; ?>
